package com.heima.ssm.dao;

import com.heima.ssm.pojo.Traveller;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Penguin
 * @create Date 2021/5/4  Time 15:52
 */
public interface ITravellerDao {

    @Select("select * from traveller where id in (select travellerId from order_traveller where orderId=#{ordersId})")
    List<Traveller> findTravellerByTravellerIdWhereFromOrders(int ordersId);
}
